﻿namespace Sina.Weibo
{
    using System;

    /// <summary>
    /// Defines the error codes used by the library.
    /// These error codes match the ones used on the server.
    /// </summary>
    internal static class AuthErrorCodes
    {
        public const string RedirectUriMismatch = "redirect_uri_mismatch";
        public const string InvalidRequest = "invalid_request";
        public const string InvalidClient = "invalid_client";
        public const string InvalidGrant = "invalid_grant";
        public const string UnauthorizedClient = "unauthorized_client";
        public const string ExpiredToken = "expired_token";
        public const string UnsupportedGrantType = "unsupported_grant_type";
        public const string UnsupportedResponseType = "unsupported_response_type";
        public const string AccessDenied = "access_denied";
        public const string TemporarilyUnavaliable = "temporarily_unavailable";
        public const string AppkeyPermissionDenied = "appkey permission denied";
        public const string ClientError = "client_error";
        public const string ServerError = "server_error";
    }
}
